package lp2.projeto;
import org.junit.*;

public class UsuarioTest {

	private Usuario user1 = new Usuario("Joao", "Aluno de lp2", "joao@hotmail.com");
	
	@Test
	public void testaUsurario(){
		Assert.assertEquals("Joao", user1.getNome());
		user1.setNome("jose");
		Assert.assertEquals("jose", user1.getNome());
		Assert.assertEquals("Aluno de lp2", user1.getDescricao());
		user1.setDescricao("Aluno de p2");
		Assert.assertEquals("Aluno de p2", user1.getDescricao());
		Assert.assertEquals("joao@hotmail.com", user1.getEmail());
		user1.setEmail("joao@gmail.com");
		Assert.assertEquals("joao@gmail.com", user1.getEmail());
	}
	
	@Test
	public void comparaUsuarios(){
		Usuario user2 = new Usuario("Rapha", "Gosto de programar", "rapha@gmail.com");
		Assert.assertFalse(user1.equals(user2));
	}
}